﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessObjects;

namespace DataObjects.Entity
{
    public class Mapper
    {
        internal static Customer Map(CustomerEntity entity)
        {
            return new Customer {Name = entity.ContactName, CompanyName = entity.CompanyName, CustomerId = entity.CustomerID};
        }

        internal  static CustomerEntity Map(Customer customer)
        {
            return new CustomerEntity { ContactName = customer.Name, CompanyName = customer.CompanyName, CustomerID = customer.CustomerId };
        }

        internal static OrderEntity Map(Order entity)
        {
            // map this
            return new OrderEntity();
        }
    }
}
